package com.note7_6;

import java.io.Serializable;

public class Person implements Serializable{

	//员工有姓名，年龄，性别，职务，薪水、工号等属性
	private String name;
	private int age;
	private String sex;
	private String duty;	//职务
	private int money;
	private int number;
	private static final long serialVersionUID = 1L;
	
	public Person(){
		
	}
	public Person(String name,int age,String sex,String duty,int money,int number){
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.duty = duty;
		this.money = money;
		this.number = number;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getDuty() {
		return duty;
	}
	public void setDuty(String duty) {
		this.duty = duty;
	}
	public int getMoney() {
		return money;
	}
	public void setMoney(int money) {
		this.money = money;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	@Override
	public String toString() {
		return "\nPerson [name=" + name + ", age=" + age + ", sex=" + sex + ", duty=" + duty + ", money=" + money
				+ ", number=" + number + "]\n";
	}
	
}
